Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New manifest and action level logs with new strip and tail options #303

Merged
merged 7 commits into from
Oct 16, 2020

Conversation

Himavanth
Copy link
Contributor

@Himavanth Himavanth commented Oct 5, 2020

Description

Fixes #96 among other enhancements as described in https://wiki.corp.adobe.com/display/AdobeCloudPlatform/Consolidation+of+logs+command+in+runtime+and+app+plugins

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov
Copy link

codecov bot commented Oct 8, 2020

Codecov Report

Merging #303 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #303   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           27        27           
  Lines         1246      1242    -4     
  Branches       218       218           
=========================================
- Hits          1246      1242    -4     
Impacted Files Coverage Δ
src/lib/app-helper.js 100.00% <ø> (ø)
src/commands/app/logs.js 100.00% <100.00%> (ø)
src/lib/runDev.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 96d44ff...a08f72d. Read the comment docs.

@Himavanth Himavanth marked this pull request as ready for review October 8, 2020 11:30
}
filterActions = [actionName]
} else {
Object.entries(config.manifest.full.packages).forEach((packageTuple) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a little gnarly, not sure it could be any better though

description: 'strip timestamp information and output first line only',
default: false
}),
tail: flags.boolean({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is tail our final choice? should we alias it with watch?
what is the point of adding a default for -a? if they want to get logs for an action or actions, they would need to specify it ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx @purplecabbage . Removed action default and added aliases.

@Himavanth Himavanth merged commit e57e2f1 into master Oct 16, 2020
@Himavanth Himavanth deleted the logs branch November 25, 2020 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a log option to fetch logs indefinitely
3 participants